/*
 * Copyright (c) 2016- 2020 qolome.com Inc. All Rights Reserved.
 * ProjectName: qolome-knowledge
 * FileName: Employee.java
 * Author: jiangfeng@qolome.com
 * Date: 2020/3/29 下午12:01
 * LastModified: 2020/03/29 12:01:29
 */

package com.qolome.knowledge.design.pattern.visitor.demo.kpi;

import java.util.Random;

/**
 * @author Qolome
 * @version V1.0
 * @Description 员工
 * @date 2020年 03月29日 12:01:37
 */
public abstract class Employee {

    public String name;
    public int kpi;

    public Employee(String name){
        this.name =name;
        kpi = new Random().nextInt(10);

    }


    //接收访问者的访问
    public abstract void accept(IVisitor visitor);


}
